package com.ng.desktop.expansionsa.services;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ng.framework.persistence.NGListName;
import com.ng.framework.persistence.NGListingService;

@Repository("customNGListingService")
public class CustomNGListingService extends NGListingService {

	public static final NGListName C = new NGListName("id", "fullname", null, Object.class);
	
	@SuppressWarnings("unchecked")
	public List<String> getCategorias() {
		return getHibernateTemplate().find("select distinct categoria from com.ng.desktop.expansionsa.model.Articulo order by categoria asc");
	}

}
